<?php
class  Home_m extends  CI_Model{
	function __construct()
	{
		parent::__construct();
		$this->load->database();
	}
	function insert($data){
		
		$this->db->insert('user',$data);
	}
	
	function get($data){
		$sql="select * from user where username=?";
		$query=$this->db->query($sql,$data);
		return $query->result();
	}
}

?>